package com.hllxd.hism.star.basic.service.service;

import com.hllxd.hism.star.basic.service.collect.DateUtils;
import com.hllxd.hism.star.basic.service.dao.mapper.doris.DictCmcMapper;
import com.hllxd.hism.star.basic.service.model.doris.DictCmcEntity;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service("dictCmcService")
public class DictCmcServiceImpl implements DictCmcService {

    @Autowired
    private DictCmcMapper dictCmcMapper;

    @Override
    public List<DictCmcEntity> listDispLocal1() {
        return dictCmcMapper.listDispLocal1(DateUtils.lastDate(-1));
    }

    @Override
    public List<DictCmcEntity> listCate3() {
        return dictCmcMapper.listCate3(DateUtils.lastDate(-1));
    }
}
